﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<string>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Media
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Media</h2>
    
    <ul>
    <%
        foreach (var item in Model)
        {
            %>
            <li><%= Html.ActionLink(Url.Content(item), "Media", new { id = Url.Content(item) }) %></li>
            <%
        }
    %>
    </ul>

    <video src="<%= Url.RouteUrl(new { id = Url.Content(Model.First()) }) %>" controls>
        This is fallback text to display if the browser
        does not support the video element.
    </video>
</asp:Content>
